package de.gwtprime.client.places;


import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class ArticleOverviewPlace extends Place{

	String name;
	
	public ArticleOverviewPlace(String token){
		this.name = token;
	}
	
	public String getName() {
		return name;
	}
	
	@Prefix("!Trading") 
	public static class Tokenizer implements PlaceTokenizer<ArticleOverviewPlace>{

		@Override
		public ArticleOverviewPlace getPlace(String token) {
			return new ArticleOverviewPlace(token);
		}

		@Override
		public String getToken(ArticleOverviewPlace place) {
			return place.getName();
		}

		
	}

}
